home *** CD-ROM | disk | FTP | other *** search
/ Aminet 31 / Aminet 31 (1999)(Schatztruhe)[!][Jun 1999].iso / Aminet / game / misc / RushHour_16a.lha / RushHour / data / level.txt < prev    next >
Text File  |  1998-06-17  |  5KB  |  156 lines

  1. /*
  2. This is an example for a level.txt
  3. Copy this file to your new city-directory
  4. and modify
  5. */
  6.  
  7. /* these are the descriptions for the first 3 values of a level:
  8.  PALETTE   0=blue-green  1=green         2=blue      3=green-grey
  9.  BACKITEM  0=border-box  1=double-cross  2=smallbox  3=bigbox
  10.  GFX       0=long box    1=small-cars    2=circle    3=triangle     4=box
  11. */
  12.  
  13. /* Data for first level */
  14. "Levelname",    /* Levelname in quotation marks */
  15.     PALETTE,    /* value 0-3, select colour-palette */
  16.     BACKITEM,    /* value 0-3, select background-pattern */
  17.     GFX,        /* value 0-4, select gfx for cars */
  18.  
  19. /* 3 values per skill */
  20.     DELAY,RANDOM,TODO,    /* easy */
  21.     DELAY,RANDOM,TODO,    /* medium */
  22.     DELAY,RANDOM,TODO,    /* hard */
  23.  
  24. /* DELAY defines the frequency for the appearence of the cars          */
  25. /*       5=very fast, 20=very slow                                     */
  26.  
  27. /* RANDOM probability for that a car really appeares after DELAY       */
  28. /*       0=appears everytime,  7=doesn't appear too often              */
  29.  
  30. /* So the values DELAY and RANDOM in combination say how fast and how  */
  31. /* many new cars will appear in the game. Low values make the game     */
  32. /* very difficult, higher values make life easier.                     */
  33.  
  34. /* TODO is the number of cars the must leave the screen before the     */
  35. /* player will get into the blue bonusmode                             */
  36.  
  37.  
  38. /* Optional values for a leveldescription                              */
  39.  
  40.     robots,3,
  41. /* The keyword 'robot' must be written exactly in lower case           */
  42. /* the followin value is the number of robots that will help the       */
  43. /* player (should be lower than number of traffic-lights of course)    */
  44.  
  45. /* Optional part for definition of so called 'connections'             */
  46.     connect,
  47.     CROSS-NO,DIRECTION,CROSS-NO2,
  48.     CROSS-NO,DIRECTION,CROSS-NO2,
  49.     endconnect,
  50. /* This section is described in a special chapter at the end           */
  51. /* of the file                                                         */
  52.  
  53. /* Optional part for definition of a new title                         */
  54.     title "This is my new title
  55. and it consists of 3 lines
  56. and this is the last line"
  57.  
  58. /* the new title will be displayed instead of the "Get Ready" message  */
  59.  
  60.  
  61.  
  62. /* now there can follow many more leveldescriptions                    */
  63.  
  64. /* Data for second level */
  65. "l1",2,1,4,
  66.     17,4,100,
  67.     16,4,130,
  68.     15,3,160,
  69.     robots,2,
  70.  
  71. /* Data for third level */
  72. "level2",1,0,2,
  73.     16,4,100,
  74.     15,5,120,
  75.     14,2,240,
  76.  
  77. /* The keyword 'end' must be the last word of the section              */
  78. end
  79. /* the progam does not read any further                                */
  80.  
  81. /*
  82.   More examples can be found in
  83.       RushHour/data/Atlanta/level.txt
  84.       RushHour/data/Denver/level.txt
  85. */
  86.  
  87.  
  88.  
  89. /*
  90. Chapter to discuss the connect-endconnect section
  91. -------------------------------------------------
  92.  
  93.     connect,
  94.     CROSS-NO,DIRECTION,CROSS-NO2,
  95.     CROSS-NO,DIRECTION,CROSS-NO2,
  96.     endconnect,
  97.  
  98. The section starts with the keyword 'connect' and
  99. ends with the keyword 'endconnect'.
  100. In between you can define so called connections, one per line.
  101. A connection tells the programm, how the cursor in the game
  102. can be moved. It's not important when the player is controling
  103. the game with the mouse. But in multiplayer-mode there is no
  104. mousecontrol and so you can only go up, down, left or right with
  105. your cursor. But if there is no crossing in the level with exactly
  106. the same height or width, the program will not know where to
  107. jump to. So you have to (you can) define additional connections.
  108.  
  109. For example:
  110. Let's say, one level would have these crossings:
  111.  
  112.        X               X
  113.  
  114.                     X
  115.        X
  116.  
  117.  
  118. The crossing will be numbered from left to right, from top to bottom:
  119.  
  120.        0               1
  121.  
  122.                     2
  123.        3
  124.  
  125. The program will detect automatically, that the cursor can go from
  126. 0 right to 1, and from 1 left to 0, because crossing 0 and 1 are
  127. at the same height. Also the program can see, that the cursor can
  128. move from 0 down to 3, and from 3 up to 0, because the two crossings
  129. are at the same width. So all there is left to do is to define the
  130. connections to crossing 2.
  131.     connect,
  132.     1,d,2,
  133.     2,u,1,
  134.     3,r,2,
  135.     2,l,3,
  136.     endconnect,
  137.  
  138. The first line (1,d,2) says, that you can move from 1 down to 2.
  139. So the numbers stand for the crossings and the letter in between
  140. stands for:
  141.    u = Up = Cursor up
  142.    d = Down = Cursor down
  143.    l = Left = Cursor left
  144.    r = Right = Cursor right
  145.  
  146. In case of bigger levels with many crossing it can be a lot of
  147. work to find all missing connections that must be defined. I
  148. for myself always draw a little picture on paper in order to
  149. not forget a link.
  150. As long as you play with mousecontrol in OnePlayerMode, you can
  151. completely forget connections and do without.
  152. And if it is too hard to define them, just send me the levels
  153. and I will see what I can do. (I've got some practise now :)
  154.  
  155. */
  156.